const Layout = () => import("@/layout/index.vue");

export default [
  {
    path: "/login",
    name: "Login",
    component: () => import("@/views/login/index.vue"),
    meta: {
      title: "登录",
      showLink: false,
      rank: 101
    }
  },
  {
    path: "/redirect",
    component: Layout,
    meta: {
      title: "加载中...",
      showLink: false,
      rank: 102
    },
    children: [
      {
        path: "/redirect/:path(.*)",
        name: "Redirect",
        component: () => import("@/layout/redirect.vue")
      }
    ]
  },
  {
    path: "/",
    redirect: "/dashboard/patientAnalyse",
    component: Layout,
    meta: {
      showLink: false,
      title: "门诊人次科室分析",
      rank: 103
    },
    children: [
      {
        path: "/dashboard/patientAnalyse",
        name: "PatientAnalyse",
        component: () =>
          import("@/views/dashboard/subComponents/patientAnalyse.vue"),
        meta: {
          title: "门诊人次科室分析"
        }
      }
    ]
  },
  {
    path: "/",
    redirect: "/dashboard/outpatientExpense",
    component: Layout,
    meta: {
      showLink: false,
      title: "门诊运营核心指标看板",
      rank: 104
    },
    children: [
      {
        path: "/dashboard/outpatientExpense",
        name: "OutpatientExpense",
        component: () =>
          import("@/views/dashboard/subComponents/outpatientExpense.vue"),
        meta: {
          title: "门诊运营核心指标看板"
        }
      }
    ]
  },
  {
    path: "/",
    redirect: "/dashboard/hospitalExpense",
    component: Layout,
    meta: {
      showLink: false,
      title: "住院费用分析",
      rank: 105
    },
    children: [
      {
        path: "/dashboard/hospitalExpense",
        name: "HospitalExpense",
        component: () =>
          import("@/views/dashboard/subComponents/hospitalExpense.vue"),
        meta: {
          title: "住院费用分析"
        }
      }
    ]
  },
  {
    path: "/",
    redirect: "/dashboard/hospitalAnalyse",
    component: Layout,
    meta: {
      showLink: false,
      title: "住院分析",
      rank: 105
    },
    children: [
      {
        path: "/dashboard/hospitalAnalyse",
        name: "HospitalAnalyse",
        component: () =>
          import("@/views/dashboard/subComponents/hospitalAnalyse.vue"),
        meta: {
          title: "住院分析"
        }
      }
    ]
  },
  {
    path: "/",
    redirect: "/dashboard/hospitalEfficiency",
    component: Layout,
    meta: {
      showLink: false,
      title: "住院效率分析",
      rank: 106
    },
    children: [
      {
        path: "/dashboard/hospitalEfficiency",
        name: "HospitalEfficiency",
        component: () =>
          import("@/views/dashboard/subComponents/hospitalEfficiency.vue"),
        meta: {
          title: "住院效率分析"
        }
      }
    ]
  }
] satisfies Array<RouteConfigsTable>;
